using JTZY.Model.Agent;

namespace JTZY.Model.Agent.Dto
{
    /// <summary>
    /// 代理商订单记录表查询对象
    /// </summary>
    public class CorecmsagentorderQueryDto : PagerInfo 
    {
        public long UserId { get; set; }
        public DateTime? BeginCreateTime { get; set; }
        public DateTime? EndCreateTime { get; set; }
        public string Name { get; set; }

    }

    /// <summary>
    /// 代理商订单记录表输入输出对象
    /// </summary>
    public class CorecmsagentorderDto
    {
        [Required(ErrorMessage = "序列不能为空")]
        public int Id { get; set; }

        [Required(ErrorMessage = "用户代理商id不能为空")]
        public long UserId { get; set; }

        [Required(ErrorMessage = "下单用户id不能为空")]
        public long BuyUserId { get; set; }

        public string OrderId { get; set; }

        [Required(ErrorMessage = "结算金额不能为空")]
        public decimal Amount { get; set; }

        [Required(ErrorMessage = "是否结算不能为空")]
        public int IsSettlement { get; set; }

        [Required(ErrorMessage = "创建时间不能为空")]
        public DateTime? CreateTime { get; set; }

        public DateTime? UpdateTime { get; set; }

        [Required(ErrorMessage = "是否删除不能为空")]
        public bool IsDelete { get; set; }



        public List<CorecmsagentorderdetailsDto> CorecmsagentorderdetailsNav { get; set; }
        [ExcelColumn(Name = "是否结算")]
        public string IsSettlementLabel { get; set; }
        public string UserName { get; set; }
    }

    /// <summary>
    /// 销售明细请求
    /// </summary>
    public class RptSaleDetailQueryDto : PagerInfo
    {
        public string goodsCategoryId { get; set; }

        public string[] createTime { get; set; }

        public long agentId { get; set; }


        public string productName { get; set; }

        public string barCode { get; set; }

        public string orderField { get; set; }
        public string goodsName { get; set; }

        public string userName { get; set; }

        public string orderId { get; set; }

    }
    /// <summary>
    /// 销售汇总请求
    /// </summary>
    public class RptSaleSummaryQueryDto : PagerInfo
    {
        public string goodsCategoryId { get; set; }

        public string[] createTime { get; set; }

        public long agentId { get; set; }


        public string productName { get; set; }

        public string barCode { get; set; }

        public string orderField { get; set; }
        public string goodsName { get; set; }

        public string userName { get; set; }
    }
}